import waveRequest from "@/api/request.js";

export const menuSave = (data) => waveRequest({
    method: 'post',
    url: '/menu/save',
    data
})

export const menuDelete = (ids) => waveRequest({
    url: '/menu/delete',
    method: 'post',
    data: {ids: ids}
})

export const menuModify = (data) => waveRequest({
    url: '/menu/modify',
    method: 'post',
    data
})

export const menuQuery = (data) => waveRequest({
    url: '/menu/query',
    method: 'post',
    data
})

export const menuList = (data) => waveRequest({
    url: '/menu/list',
    method: 'post',
    data
})

export const menuPage = (data) => waveRequest({
    url: '/menu/page',
    method: 'post',
    data
})

export const menuTree = () => waveRequest({
    url: '/menu/tree',
    method: 'post'
})